package com.donleo.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.donleo.security.model.Permission;
import com.donleo.security.model.User;

import java.util.List;

/**
 * @author liangd
 * @since 2021-01-15 17:32
 */
public interface UserMapper extends BaseMapper<User> {

    List<User> getUserByCode(String code);

    List<Permission> getPermissionsByUserCode(String userCode);
}
